/**
 * Created by CodeTlan.
 * User: Ing. Miguel Salas
 * Date: 3/19/12
 * Time: 2:44 AM
 */
Ext.define('CT.view.consulta.Form', {
    extend: 'Ctc.view.Form',
    alias: 'widget.formconsulta',
    initComponent: function(){
        this.callParent(arguments);
    },
    buildItems: function(){
        return [{
            fieldLabel: 'Ficha',
            enforceMaxLength: 'true',
            maxLength: 6,
            minLength: 6,
            vtype: 'num',
            name: 'ficha'
        },{
            xtype: 'datemx',
            fieldLabel: 'Fecha inicio',
            name: 'fecha_inicio'
        },{
            xtype: 'datemx',
            fieldLabel: 'Fecha final',
            name: 'fecha_fin'
        }];
    },
    buildButtons:function(){
        return [{
            text: 'Cancelar',
            handler: function(){
                this.up('form').getForm().reset();
            }
        },{
            text: 'Buscar',
            formBind: true,
            disabled: true,
            action: 'search'
        }];
    }
});